<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$cparams =& JComponentHelper::getParams('com_media');
?>
<?php 
$db =& JFactory::getDBO();
$id=$_GET['id'];
$query = "SELECT * FROM jos_content where id=$id";
$db->setQuery( $query );
$row = $db->loadObject();
?>

<div class="bg_tt6_2"><?php echo $row->title; ?></div>
<?php if(false){ 
                 
    		  

$db =& JFactory::getDBO();
$id=$_GET['id'];
$query = "SELECT * FROM jos_content where id=$id";
$db->setQuery( $query );
$row = $db->loadObject();
  		

	
	
?>

<?php }else{?>
<?php  echo $row->introtext; ?>  

<?php }?>
<?php if($_GET['cid']=="5"){
$db =& JFactory::getDBO();
$query = "SELECT * FROM jos_attachments b where  b.parent_id=5";
$db->setQuery( $query );
$row = $db->loadObject();
   		

?>
<div class="m10t uper bo">Det formodes at der allerede er udarbejdet en plan
<span class="m10l"><a target="_blank" href="<?php echo $row->url ;?>"><img src="images/stories/content/tt_se.png" /></a> <img src="images/stories/content/icon8.png" /></span>
</div>

<?php }?>               